package io.bdmc.modules.bss.service;

import io.bdmc.modules.bss.entity.SmkDevice;
import io.bdmc.modules.bss.model.DevParam;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.extension.service.IService;
import io.bdmc.common.utils.MyPage;
/**
 * <p>
 *  服务类
 * </p>
 *
 * @author huang lu
 * @since 2019-01-21
 */
public interface ISmkDeviceService extends IService<SmkDevice> {
    public MyPage<SmkDevice> mySelectPage(MyPage<SmkDevice> page,DevParam devParam);

    Integer updateBatch(Long shop_id,Long dept_id,Long[] devids);

    Integer unBindDev(Long[] devids);

    Map<String,Object> wxDeviceSum(Long deptId);

    Long countByDepId(MyPage<SmkDevice> page);

    Long selectCountByDepId(Long deptId);

    //超过3天的数据定义为离线
    List<SmkDevice> listHKOfflineDevice();
}
